SORT
Creating new Sort
const sort = new Sort(data);
const sort2 = new Sort(data, 'Primary key');
const sort3 = new Sort(data, 'Primary key', CustomSortFunction);
Updating data
const data = sort.updateData(newData);
const data2 = sort.updateData(newData, false);
Updating criteria
sort.setSortFunction(CustomFunction);
sort.SortFunction = CustomFunction;
sort.setPrimaryKey('new key');
sort.PrimaryKey = 'new key';
Removing criteria
sort.removePrimaryKey();
sort.setDefaultSort();
Sorting data
const data = sort.sortBy('name');
Getting data
const data = sort.getData();
Resorting data
const data = sort.sortData();
WHAT NEXT
Add promise like for big data!